﻿import React from 'react';
import { Form, Input, Row, Col, Button, DatePicker,Icon, Select,Spin } from 'antd';
import './index.less'
import classNames from 'classnames';
const FormItem = Form.Item;
const Option = Select.Option;

class CompanyCard extends React.Component {

	constructor(props){
		super(props);
	}

	render() {
    let { company, loading } = this.props;
		const container = (
			<Form horizontal>
				<Row gutter={16}>
          <Col sm={1}>
            </Col>
					<Col sm={10}>
						<FormItem	label="单位名称"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.name               }/></FormItem>
						<FormItem	label="单位所在地"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.location           }/></FormItem>
						<FormItem	label="组织机构代码"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.orgCode            }/></FormItem>
						<FormItem	label="单位性质"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.type               }/></FormItem>
						<FormItem	label="邮政编码"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.zipCode            }/></FormItem>
						<FormItem	label="部门"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.department         }/></FormItem>
						<FormItem	label="固定电话"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.telephone          }/></FormItem>
						<FormItem	label="联系人"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.linkman            }/></FormItem>

					</Col>
					<Col sm={10}>
						<FormItem	label="行业"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.industry           }/></FormItem>
						<FormItem	label="通讯地址"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.address            }/></FormItem>
						<FormItem	label="工作职业类别"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.title              }/></FormItem>
						<FormItem	label="是否接受档案"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.receiveRecord      }/></FormItem>
						<FormItem	label="是否接受户口"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.receiveResidence   }/></FormItem>
						<FormItem	label="签到单位"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.signCompany        }/></FormItem>
						<FormItem	label="签到单位所在地"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.signCompanyAddress }/></FormItem>
						<FormItem	label="档案寄送地址"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={company.recordSendAddress  }/></FormItem>
					</Col>
          <Col sm={3}>
            </Col>
				</Row>
			</Form>
		);
    return (
      <Spin spinning={loading}>{container}</Spin>
    );
	}
}

CompanyCard = Form.create()(CompanyCard);

export default CompanyCard;
